#ifndef TJ_FORM_YBXMCX_H
#define TJ_FORM_YBXMCX_H

#include <QWidget>
#include <QSqlQuery>
#include <QMap>
#include <QSqlQueryModel>
#include "pub_pop_delay.h"
#include "pub_sqthread.h"

namespace Ui {
class tj_form_ybxmcx;
}

class tj_form_ybxmcx : public QWidget
{
    Q_OBJECT

    void closeEvent(QCloseEvent *event);

signals:
    void destroyW( QString );



public:
    explicit tj_form_ybxmcx(QWidget *parent = nullptr);
    ~tj_form_ybxmcx();

private slots:
    void threadMsg(QString s);
    void on_pbExit_clicked();

    void on_pbSearch_clicked();

    void on_tvList_clicked(const QModelIndex &index);

    void on_tvList_doubleClicked(const QModelIndex &index);

    void on_cbbType_currentTextChanged(const QString &arg1);

private:
    Ui::tj_form_ybxmcx *ui;


    QSqlQuery *qrm, *qrmt, *qro, *qrot;
    //QSqlQueryModel mdList ;//
    QString sq;
    QSqlQueryModel *md;

    QString listType;

    Pub_pop_delay * dlgp1;
    sqThread * sqth;
    QStringList sqlMsg;

};

#endif // TJ_FORM_YBXMCX_H
